<script>
  import routingIntercept from '@/utils/permission.js'
  export default {
    onLaunch: function () {
      // console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！');
      console.log('App Launch')
      // 对路由进行统一拦截，实现路由导航守卫 router.beforeEach 功能
      routingIntercept()
    },
    onShow: function () {
      console.log('App Show')
    },
    onHide: function () {
      console.log('App Hide')
    }
  }
</script>

<style>
  /*每个页面公共css */
  * {
    box-sizing: border-box;
  }
  *::before,
  *::after {
    box-sizing: border-box !important;
  }
  view,
  scroll-view,
  swiper,
  button,
  input,
  textarea,
  label,
  navigator,
  image {
    box-sizing: border-box;
  }
</style>
